package o;

import androidx.appcompat.widget.ActivityChooserView.ActivityChooserViewAdapter;
import com.huawei.appgallery.festivalanimation.particle.modifiers.SizeModifier;
import com.huawei.appmarket.service.appdetail.bean.detail.DetailScreenBean;
import com.huawei.hwid.core.constants.HwAccountConstants;
import java.util.ArrayList;
import o.eo.a;
import o.eo.b;

public class el {
    public static float ॱʽ = 0.5f;
    protected el[] ʹ = new el[]{null, null};
    float ʻ = 1.0f;
    private float ʻˊ = 0.0f;
    private int ʻˋ = 0;
    eo ʻॱ = new eo(this, a.TOP);
    private int[] ʻᐝ = new int[]{ActivityChooserViewAdapter.MAX_ACTIVITY_COUNT_UNLIMITED, ActivityChooserViewAdapter.MAX_ACTIVITY_COUNT_UNLIMITED};
    int ʼ = 0;
    private int ʼˊ = 0;
    private int ʼˋ = 0;
    eo ʼॱ = new eo(this, a.RIGHT);
    private Object ʼᐝ;
    int ʽ = 0;
    private int ʽˊ;
    private int ʽˋ = 0;
    eo ʽॱ = new eo(this, a.BOTTOM);
    private int ʽᐝ = 0;
    eo ʾ = new eo(this, a.CENTER_Y);
    private int ʾॱ;
    eo ʿ = new eo(this, a.BASELINE);
    private String ʿॱ = null;
    eo ˈ = new eo(this, a.CENTER_X);
    private int ˈॱ = 0;
    protected c[] ˉ = new c[]{c.FIXED, c.FIXED};
    ex ˊ;
    private String ˊʻ = null;
    eo ˊˊ = new eo(this, a.CENTER);
    el ˊˋ = null;
    float ˊॱ = 1.0f;
    protected ArrayList<eo> ˊᐝ = new ArrayList();
    ex ˋ;
    protected eo[] ˋˊ = new eo[]{this.ᐝॱ, this.ʼॱ, this.ʻॱ, this.ʽॱ, this.ʿ, this.ˊˊ};
    protected int ˋˋ = -1;
    boolean ˋॱ;
    protected float ˋᐝ = 0.0f;
    protected int ˌ = 0;
    int ˍ = 0;
    public int ˎ = -1;
    int ˎˎ = 0;
    protected int ˎˏ = 0;
    int ˏ = 0;
    int ˏˎ = 0;
    protected int ˏˏ = 0;
    int ˏॱ = 0;
    int ˑ = 0;
    int ͺ = 0;
    protected int ͺॱ = 0;
    protected int ـ;
    public int ॱ = -1;
    protected int ॱʻ;
    float ॱʼ = ॱʽ;
    boolean ॱˊ;
    float ॱˋ = 1.0f;
    es ॱˎ = null;
    int ॱͺ = 0;
    int ॱॱ = 0;
    int ॱᐝ = -1;
    int[] ᐝ = new int[2];
    boolean ᐝˊ = false;
    float ᐝˋ = ॱʽ;
    eo ᐝॱ = new eo(this, a.LEFT);
    boolean ᐝᐝ = false;
    boolean ᐧ;
    boolean ᐨ;
    boolean ᶥ;
    int ㆍ = 0;
    boolean ꓸ;
    int ꜞ = 0;
    boolean ꜟ = false;
    el ꞌ = null;
    float[] ﹳ = new float[]{SizeModifier.STABLE_STATE_SCALE, SizeModifier.STABLE_STATE_SCALE};
    el ﾞ = null;
    protected el[] ﾟ = new el[]{null, null};

    public enum c {
        FIXED,
        WRAP_CONTENT,
        MATCH_CONSTRAINT,
        MATCH_PARENT
    }

    public void ˏ(int i) {
        this.ʻᐝ[0] = i;
    }

    public void ॱ(int i) {
        this.ʻᐝ[1] = i;
    }

    public boolean ˎ() {
        return this.ˏ == 0 && this.ˋᐝ == 0.0f && this.ʽ == 0 && this.ʼ == 0 && this.ˉ[0] == c.MATCH_CONSTRAINT;
    }

    public boolean ʻ() {
        return this.ॱॱ == 0 && this.ˋᐝ == 0.0f && this.ˏॱ == 0 && this.ͺ == 0 && this.ˉ[1] == c.MATCH_CONSTRAINT;
    }

    public void ʽ() {
        this.ᐝॱ.ʽ();
        this.ʻॱ.ʽ();
        this.ʼॱ.ʽ();
        this.ʽॱ.ʽ();
        this.ʿ.ʽ();
        this.ˈ.ʽ();
        this.ʾ.ʽ();
        this.ˊˊ.ʽ();
        this.ˊˋ = null;
        this.ʻˊ = 0.0f;
        this.ˍ = 0;
        this.ˎˎ = 0;
        this.ˋᐝ = 0.0f;
        this.ˋˋ = -1;
        this.ˌ = 0;
        this.ˎˏ = 0;
        this.ʻˋ = 0;
        this.ʼˊ = 0;
        this.ʼˋ = 0;
        this.ʽᐝ = 0;
        this.ˏˏ = 0;
        this.ͺॱ = 0;
        this.ॱͺ = 0;
        this.ॱʻ = 0;
        this.ـ = 0;
        this.ʽˊ = 0;
        this.ʾॱ = 0;
        this.ॱʼ = ॱʽ;
        this.ᐝˋ = ॱʽ;
        this.ˉ[0] = c.FIXED;
        this.ˉ[1] = c.FIXED;
        this.ʼᐝ = null;
        this.ʽˋ = 0;
        this.ˈॱ = 0;
        this.ˊʻ = null;
        this.ᐧ = false;
        this.ᐨ = false;
        this.ꜞ = 0;
        this.ㆍ = 0;
        this.ᶥ = false;
        this.ꓸ = false;
        this.ﹳ[0] = SizeModifier.STABLE_STATE_SCALE;
        this.ﹳ[1] = SizeModifier.STABLE_STATE_SCALE;
        this.ˎ = -1;
        this.ॱ = -1;
        this.ʻᐝ[0] = ActivityChooserViewAdapter.MAX_ACTIVITY_COUNT_UNLIMITED;
        this.ʻᐝ[1] = ActivityChooserViewAdapter.MAX_ACTIVITY_COUNT_UNLIMITED;
        this.ˏ = 0;
        this.ॱॱ = 0;
        this.ʻ = 1.0f;
        this.ˊॱ = 1.0f;
        this.ʼ = ActivityChooserViewAdapter.MAX_ACTIVITY_COUNT_UNLIMITED;
        this.ͺ = ActivityChooserViewAdapter.MAX_ACTIVITY_COUNT_UNLIMITED;
        this.ʽ = 0;
        this.ˏॱ = 0;
        this.ॱᐝ = -1;
        this.ॱˋ = 1.0f;
        if (this.ˋ != null) {
            this.ˋ.ॱ();
        }
        if (this.ˊ != null) {
            this.ˊ.ॱ();
        }
        this.ॱˎ = null;
        this.ᐝˊ = false;
        this.ᐝᐝ = false;
        this.ꜟ = false;
    }

    public void ˊ() {
        for (int i = 0; i < 6; i++) {
            this.ˋˊ[i].ˎ().ॱ();
        }
    }

    public void ᐝ() {
        for (int i = 0; i < 6; i++) {
            this.ˋˊ[i].ˎ().ˎ();
        }
    }

    public void ˋ(int i) {
        eq.ˏ(i, this);
    }

    public void ˏ() {
    }

    public boolean ॱॱ() {
        if (this.ᐝॱ.ˎ().ᐝ == 1 && this.ʼॱ.ˎ().ᐝ == 1 && this.ʻॱ.ˎ().ᐝ == 1 && this.ʽॱ.ˎ().ᐝ == 1) {
            return true;
        }
        return false;
    }

    public ex ʼ() {
        if (this.ˋ == null) {
            this.ˋ = new ex();
        }
        return this.ˋ;
    }

    public ex ͺ() {
        if (this.ˊ == null) {
            this.ˊ = new ex();
        }
        return this.ˊ;
    }

    public el() {
        ˋ();
    }

    public void ॱ(ee eeVar) {
        this.ᐝॱ.ˎ(eeVar);
        this.ʻॱ.ˎ(eeVar);
        this.ʼॱ.ˎ(eeVar);
        this.ʽॱ.ˎ(eeVar);
        this.ʿ.ˎ(eeVar);
        this.ˊˊ.ˎ(eeVar);
        this.ˈ.ˎ(eeVar);
        this.ʾ.ˎ(eeVar);
    }

    private void ˋ() {
        this.ˊᐝ.add(this.ᐝॱ);
        this.ˊᐝ.add(this.ʻॱ);
        this.ˊᐝ.add(this.ʼॱ);
        this.ˊᐝ.add(this.ʽॱ);
        this.ˊᐝ.add(this.ˈ);
        this.ˊᐝ.add(this.ʾ);
        this.ˊᐝ.add(this.ˊˊ);
        this.ˊᐝ.add(this.ʿ);
    }

    public el ॱˊ() {
        return this.ˊˋ;
    }

    public void ˎ(el elVar) {
        this.ˊˋ = elVar;
    }

    public void ॱ(boolean z) {
        this.ॱˊ = z;
    }

    public void ˋ(boolean z) {
        this.ˋॱ = z;
    }

    public void ˊ(el elVar, float f, int i) {
        ˎ(a.CENTER, elVar, a.CENTER, i, 0);
        this.ʻˊ = f;
    }

    public void ˎ(int i) {
        this.ˈॱ = i;
    }

    public int ˊॱ() {
        return this.ˈॱ;
    }

    public String ˏॱ() {
        return this.ʿॱ;
    }

    public void ˎ(String str) {
        this.ʿॱ = str;
    }

    public void ˊ(ea eaVar) {
        eaVar.ˊ(this.ᐝॱ);
        eaVar.ˊ(this.ʻॱ);
        eaVar.ˊ(this.ʼॱ);
        eaVar.ˊ(this.ʽॱ);
        if (this.ॱͺ > 0) {
            eaVar.ˊ(this.ʿ);
        }
    }

    public String toString() {
        return (this.ˊʻ != null ? "type: " + this.ˊʻ + HwAccountConstants.BLANK : "") + (this.ʿॱ != null ? "id: " + this.ʿॱ + HwAccountConstants.BLANK : "") + "(" + this.ˌ + ", " + this.ˎˏ + ") - (" + this.ˍ + " x " + this.ˎˎ + ") wrap: (" + this.ʽˊ + " x " + this.ʾॱ + ")";
    }

    public int ˋॱ() {
        return this.ˌ;
    }

    public int ʻॱ() {
        return this.ˎˏ;
    }

    public int ॱᐝ() {
        if (this.ˈॱ == 8) {
            return 0;
        }
        return this.ˍ;
    }

    public int ॱˎ() {
        return this.ʽˊ;
    }

    public int ᐝॱ() {
        if (this.ˈॱ == 8) {
            return 0;
        }
        return this.ˎˎ;
    }

    public int ॱˋ() {
        return this.ʾॱ;
    }

    public int ʻ(int i) {
        if (i == 0) {
            return ॱᐝ();
        }
        if (i == 1) {
            return ᐝॱ();
        }
        return 0;
    }

    public int ʾ() {
        return this.ʻˋ + this.ˏˏ;
    }

    public int ˈ() {
        return this.ʼˊ + this.ͺॱ;
    }

    protected int ʽॱ() {
        return this.ˌ + this.ˏˏ;
    }

    protected int ʼॱ() {
        return this.ˎˏ + this.ͺॱ;
    }

    public int ʿ() {
        return ˋॱ() + this.ˍ;
    }

    public int ˋˊ() {
        return ʻॱ() + this.ˎˎ;
    }

    public float ॱॱ(int i) {
        if (i == 0) {
            return this.ॱʼ;
        }
        if (i == 1) {
            return this.ᐝˋ;
        }
        return SizeModifier.STABLE_STATE_SCALE;
    }

    public boolean ˊˊ() {
        return this.ॱͺ > 0;
    }

    public int ˊᐝ() {
        return this.ॱͺ;
    }

    public Object ˉ() {
        return this.ʼᐝ;
    }

    public ArrayList<eo> ˊˋ() {
        return this.ˊᐝ;
    }

    public void ʽ(int i) {
        this.ˌ = i;
    }

    public void ʼ(int i) {
        this.ˎˏ = i;
    }

    public void ˎ(int i, int i2) {
        this.ˌ = i;
        this.ˎˏ = i2;
    }

    public void ˊ(int i, int i2) {
        this.ˏˏ = i;
        this.ͺॱ = i2;
    }

    public void ˋˋ() {
        int i = this.ˌ;
        int i2 = this.ˎˏ;
        int i3 = this.ˌ + this.ˍ;
        int i4 = this.ˎˏ + this.ˎˎ;
        this.ʻˋ = i;
        this.ʼˊ = i2;
        this.ʼˋ = i3 - i;
        this.ʽᐝ = i4 - i2;
    }

    public void ᐝ(int i) {
        this.ˍ = i;
        if (this.ˍ < this.ॱʻ) {
            this.ˍ = this.ॱʻ;
        }
    }

    public void ॱˊ(int i) {
        this.ˎˎ = i;
        if (this.ˎˎ < this.ـ) {
            this.ˎˎ = this.ـ;
        }
    }

    public void ˏ(int i, int i2, int i3, float f) {
        this.ˏ = i;
        this.ʽ = i2;
        this.ʼ = i3;
        this.ʻ = f;
        if (f < 1.0f && this.ˏ == 0) {
            this.ˏ = 2;
        }
    }

    public void ˋ(int i, int i2, int i3, float f) {
        this.ॱॱ = i;
        this.ˏॱ = i2;
        this.ͺ = i3;
        this.ˊॱ = f;
        if (f < 1.0f && this.ॱॱ == 0) {
            this.ॱॱ = 2;
        }
    }

    public void ˋ(String str) {
        int i = 0;
        if (str == null || str.length() == 0) {
            this.ˋᐝ = 0.0f;
            return;
        }
        float parseFloat;
        int i2 = -1;
        int length = str.length();
        int indexOf = str.indexOf(44);
        if (indexOf > 0 && indexOf < length - 1) {
            String substring = str.substring(0, indexOf);
            if (!substring.equalsIgnoreCase("W")) {
                if (substring.equalsIgnoreCase(DetailScreenBean.IMG_TAG_HORIZENTAL)) {
                    i = 1;
                } else {
                    i = -1;
                }
            }
            i2 = i;
            i = indexOf + 1;
        }
        indexOf = str.indexOf(58);
        String substring2;
        if (indexOf < 0 || indexOf >= length - 1) {
            substring2 = str.substring(i);
            if (substring2.length() > 0) {
                try {
                    parseFloat = Float.parseFloat(substring2);
                } catch (NumberFormatException e) {
                    parseFloat = 0.0f;
                }
            }
            parseFloat = 0.0f;
        } else {
            substring2 = str.substring(i, indexOf);
            String substring3 = str.substring(indexOf + 1);
            if (substring2.length() > 0 && substring3.length() > 0) {
                try {
                    parseFloat = Float.parseFloat(substring2);
                    float parseFloat2 = Float.parseFloat(substring3);
                    if (parseFloat > 0.0f && parseFloat2 > 0.0f) {
                        parseFloat = i2 == 1 ? Math.abs(parseFloat2 / parseFloat) : Math.abs(parseFloat / parseFloat2);
                    }
                } catch (NumberFormatException e2) {
                    parseFloat = 0.0f;
                }
            }
            parseFloat = 0.0f;
        }
        if (parseFloat > 0.0f) {
            this.ˋᐝ = parseFloat;
            this.ˋˋ = i2;
        }
    }

    public void ˎ(float f) {
        this.ॱʼ = f;
    }

    public void ˏ(float f) {
        this.ᐝˋ = f;
    }

    public void ˋॱ(int i) {
        if (i < 0) {
            this.ॱʻ = 0;
        } else {
            this.ॱʻ = i;
        }
    }

    public void ͺ(int i) {
        if (i < 0) {
            this.ـ = 0;
        } else {
            this.ـ = i;
        }
    }

    public void ˊॱ(int i) {
        this.ʽˊ = i;
    }

    public void ˏॱ(int i) {
        this.ʾॱ = i;
    }

    public void ॱ(int i, int i2, int i3, int i4) {
        int i5 = i3 - i;
        int i6 = i4 - i2;
        this.ˌ = i;
        this.ˎˏ = i2;
        if (this.ˈॱ == 8) {
            this.ˍ = 0;
            this.ˎˎ = 0;
            return;
        }
        if (this.ˉ[0] == c.FIXED && i5 < this.ˍ) {
            i5 = this.ˍ;
        }
        if (this.ˉ[1] == c.FIXED && i6 < this.ˎˎ) {
            i6 = this.ˎˎ;
        }
        this.ˍ = i5;
        this.ˎˎ = i6;
        if (this.ˎˎ < this.ـ) {
            this.ˎˎ = this.ـ;
        }
        if (this.ˍ < this.ॱʻ) {
            this.ˍ = this.ॱʻ;
        }
        this.ᐝᐝ = true;
    }

    public void ˊ(int i, int i2, int i3) {
        if (i3 == 0) {
            ॱ(i, i2);
        } else if (i3 == 1) {
            ˋ(i, i2);
        }
        this.ᐝᐝ = true;
    }

    public void ॱ(int i, int i2) {
        this.ˌ = i;
        this.ˍ = i2 - i;
        if (this.ˍ < this.ॱʻ) {
            this.ˍ = this.ॱʻ;
        }
    }

    public void ˋ(int i, int i2) {
        this.ˎˏ = i;
        this.ˎˎ = i2 - i;
        if (this.ˎˎ < this.ـ) {
            this.ˎˎ = this.ـ;
        }
    }

    int ॱˋ(int i) {
        if (i == 0) {
            return this.ˑ;
        }
        if (i == 1) {
            return this.ˏˎ;
        }
        return 0;
    }

    void ˏ(int i, int i2) {
        if (i2 == 0) {
            this.ˑ = i;
        } else if (i2 == 1) {
            this.ˏˎ = i;
        }
    }

    public void ᐝॱ(int i) {
        this.ॱͺ = i;
    }

    public void ˏ(Object obj) {
        this.ʼᐝ = obj;
    }

    public void ˋ(float f) {
        this.ﹳ[0] = f;
    }

    public void ˊ(float f) {
        this.ﹳ[1] = f;
    }

    public void ॱᐝ(int i) {
        this.ꜞ = i;
    }

    public void ॱˎ(int i) {
        this.ㆍ = i;
    }

    public boolean ॱ() {
        return this.ˈॱ != 8;
    }

    public void ˎ(a aVar, el elVar, a aVar2, int i, int i2) {
        ˎ(aVar).ˊ(elVar.ˎ(aVar2), i, i2, b.STRONG, 0, true);
    }

    public void ˎˎ() {
        el ॱˊ = ॱˊ();
        if (ॱˊ == null || !(ॱˊ instanceof ek) || !((ek) ॱˊ()).ॱʻ()) {
            int size = this.ˊᐝ.size();
            for (int i = 0; i < size; i++) {
                ((eo) this.ˊᐝ.get(i)).ʽ();
            }
        }
    }

    public eo ˎ(a aVar) {
        switch (aVar) {
            case LEFT:
                return this.ᐝॱ;
            case TOP:
                return this.ʻॱ;
            case RIGHT:
                return this.ʼॱ;
            case BOTTOM:
                return this.ʽॱ;
            case BASELINE:
                return this.ʿ;
            case CENTER:
                return this.ˊˊ;
            case CENTER_X:
                return this.ˈ;
            case CENTER_Y:
                return this.ʾ;
            case NONE:
                return null;
            default:
                throw new AssertionError(aVar.name());
        }
    }

    public c ˍ() {
        return this.ˉ[0];
    }

    public c ˌ() {
        return this.ˉ[1];
    }

    public c ʻॱ(int i) {
        if (i == 0) {
            return ˍ();
        }
        if (i == 1) {
            return ˌ();
        }
        return null;
    }

    public void ˋ(c cVar) {
        this.ˉ[0] = cVar;
        if (cVar == c.WRAP_CONTENT) {
            ᐝ(this.ʽˊ);
        }
    }

    public void ˊ(c cVar) {
        this.ˉ[1] = cVar;
        if (cVar == c.WRAP_CONTENT) {
            ॱˊ(this.ʾॱ);
        }
    }

    public boolean ˋᐝ() {
        if ((this.ᐝॱ.ˋ == null || this.ᐝॱ.ˋ.ˋ != this.ᐝॱ) && (this.ʼॱ.ˋ == null || this.ʼॱ.ˋ.ˋ != this.ʼॱ)) {
            return false;
        }
        return true;
    }

    public boolean ˏˎ() {
        if ((this.ʻॱ.ˋ == null || this.ʻॱ.ˋ.ˋ != this.ʻॱ) && (this.ʽॱ.ˋ == null || this.ʽॱ.ˋ.ˋ != this.ʽॱ)) {
            return false;
        }
        return true;
    }

    private boolean ˊ(int i) {
        int i2 = i * 2;
        return (this.ˋˊ[i2].ˋ == null || this.ˋˊ[i2].ˋ.ˋ == this.ˋˊ[i2] || this.ˋˊ[i2 + 1].ˋ == null || this.ˋˊ[i2 + 1].ˋ.ˋ != this.ˋˊ[i2 + 1]) ? false : true;
    }

    public void ˏ(ea eaVar) {
        int i;
        int i2;
        Object obj;
        int i3;
        int i4;
        boolean z;
        boolean z2;
        boolean z3;
        eh ˊ = eaVar.ˊ(this.ᐝॱ);
        eh ˊ2 = eaVar.ˊ(this.ʼॱ);
        eh ˊ3 = eaVar.ˊ(this.ʻॱ);
        eh ˊ4 = eaVar.ˊ(this.ʽॱ);
        eh ˊ5 = eaVar.ˊ(this.ʿ);
        boolean z4 = false;
        boolean z5 = false;
        boolean z6 = false;
        boolean z7 = false;
        if (this.ˊˋ != null) {
            z6 = this.ˊˋ != null ? this.ˊˋ.ˉ[0] == c.WRAP_CONTENT : false;
            z7 = this.ˊˋ != null ? this.ˊˋ.ˉ[1] == c.WRAP_CONTENT : false;
            if (ˊ(0)) {
                ((ek) this.ˊˋ).ˎ(this, 0);
                z4 = true;
            } else {
                z4 = ˋᐝ();
            }
            if (ˊ(1)) {
                ((ek) this.ˊˋ).ˎ(this, 1);
                z5 = true;
            } else {
                z5 = ˏˎ();
            }
            if (z6 && this.ˈॱ != 8 && this.ᐝॱ.ˋ == null && this.ʼॱ.ˋ == null) {
                eaVar.ˋ(eaVar.ˊ(this.ˊˋ.ʼॱ), ˊ2, 0, 1);
            }
            if (z7 && this.ˈॱ != 8 && this.ʻॱ.ˋ == null && this.ʽॱ.ˋ == null && this.ʿ == null) {
                eaVar.ˋ(eaVar.ˊ(this.ˊˋ.ʽॱ), ˊ4, 0, 1);
            }
        }
        boolean z8 = z7;
        boolean z9 = z5;
        boolean z10 = z4;
        z7 = z6;
        int i5 = this.ˍ;
        if (i5 < this.ॱʻ) {
            i5 = this.ॱʻ;
        }
        int i6 = this.ˎˎ;
        if (i6 < this.ـ) {
            i6 = this.ـ;
        }
        z4 = this.ˉ[0] != c.MATCH_CONSTRAINT;
        boolean z11 = this.ˉ[1] != c.MATCH_CONSTRAINT;
        Object obj2 = null;
        this.ॱᐝ = this.ˋˋ;
        this.ॱˋ = this.ˋᐝ;
        int i7 = this.ˏ;
        int i8 = this.ॱॱ;
        if (this.ˋᐝ > 0.0f && this.ˈॱ != 8) {
            obj2 = 1;
            if (this.ˉ[0] == c.MATCH_CONSTRAINT && i7 == 0) {
                i7 = 3;
            }
            if (this.ˉ[1] == c.MATCH_CONSTRAINT && i8 == 0) {
                i8 = 3;
            }
            if (this.ˉ[0] == c.MATCH_CONSTRAINT && this.ˉ[1] == c.MATCH_CONSTRAINT && i7 == 3 && i8 == 3) {
                ˏ(z7, z8, z4, z11);
                i = i8;
                i2 = i7;
                obj = 1;
                i3 = i6;
                i4 = i5;
                this.ᐝ[0] = i2;
                this.ᐝ[1] = i;
                if (obj == null) {
                }
                if (this.ˉ[0] != c.WRAP_CONTENT) {
                }
                z3 = true;
                if (this.ˊˊ.ᐝ()) {
                    z3 = false;
                }
                if (this.ˎ != 2) {
                    if (this.ˊˋ == null) {
                    }
                    if (this.ˊˋ == null) {
                    }
                    ˏ(eaVar, z7, this.ˊˋ == null ? eaVar.ˊ(this.ˊˋ.ᐝॱ) : null, this.ˊˋ == null ? eaVar.ˊ(this.ˊˋ.ʼॱ) : null, this.ˉ[0], z2, this.ᐝॱ, this.ʼॱ, this.ˌ, i4, this.ॱʻ, this.ʻᐝ[0], this.ॱʼ, z, z10, i2, this.ʽ, this.ʼ, this.ʻ, z3);
                }
                if (this.ॱ != 2) {
                    if (this.ˉ[1] != c.WRAP_CONTENT) {
                    }
                    if (obj == null) {
                    }
                    if (this.ॱͺ > 0) {
                        if (this.ʿ.ˎ().ᐝ != 1) {
                            this.ʿ.ˎ().ˎ(eaVar);
                        } else {
                            eaVar.ˊ(ˊ5, ˊ3, ˊᐝ(), 6);
                            if (this.ʿ.ˋ != null) {
                                eaVar.ˊ(ˊ5, eaVar.ˊ(this.ʿ.ˋ), 0, 6);
                                z3 = false;
                            }
                        }
                    }
                    if (this.ˊˋ == null) {
                    }
                    if (this.ˊˋ == null) {
                    }
                    ˏ(eaVar, z8, this.ˊˋ == null ? eaVar.ˊ(this.ˊˋ.ʻॱ) : null, this.ˊˋ == null ? eaVar.ˊ(this.ˊˋ.ʽॱ) : null, this.ˉ[1], z2, this.ʻॱ, this.ʽॱ, this.ˎˏ, i3, this.ـ, this.ʻᐝ[1], this.ᐝˋ, z, z9, i, this.ˏॱ, this.ͺ, this.ˊॱ, z3);
                    if (obj != null) {
                        if (this.ॱᐝ != 1) {
                            eaVar.ˋ(ˊ4, ˊ3, ˊ2, ˊ, this.ॱˋ, 6);
                        } else {
                            eaVar.ˋ(ˊ2, ˊ, ˊ4, ˊ3, this.ॱˋ, 6);
                        }
                    }
                    if (!this.ˊˊ.ᐝ()) {
                        eaVar.ˏ(this, this.ˊˊ.ʻ().ˊ(), (float) Math.toRadians((double) (this.ʻˊ + 90.0f)), this.ˊˊ.ˏ());
                    }
                }
            } else if (this.ˉ[0] == c.MATCH_CONSTRAINT && i7 == 3) {
                this.ॱᐝ = 0;
                i4 = (int) (this.ॱˋ * ((float) this.ˎˎ));
                if (this.ˉ[1] != c.MATCH_CONSTRAINT) {
                    i = i8;
                    i2 = 4;
                    obj = null;
                    i3 = i6;
                } else {
                    i = i8;
                    i2 = i7;
                    r28 = 1;
                    i3 = i6;
                }
                this.ᐝ[0] = i2;
                this.ᐝ[1] = i;
                if (obj == null) {
                }
                if (this.ˉ[0] != c.WRAP_CONTENT) {
                }
                z3 = true;
                if (this.ˊˊ.ᐝ()) {
                    z3 = false;
                }
                if (this.ˎ != 2) {
                    if (this.ˊˋ == null) {
                    }
                    if (this.ˊˋ == null) {
                    }
                    ˏ(eaVar, z7, this.ˊˋ == null ? eaVar.ˊ(this.ˊˋ.ᐝॱ) : null, this.ˊˋ == null ? eaVar.ˊ(this.ˊˋ.ʼॱ) : null, this.ˉ[0], z2, this.ᐝॱ, this.ʼॱ, this.ˌ, i4, this.ॱʻ, this.ʻᐝ[0], this.ॱʼ, z, z10, i2, this.ʽ, this.ʼ, this.ʻ, z3);
                }
                if (this.ॱ != 2) {
                    if (this.ˉ[1] != c.WRAP_CONTENT) {
                    }
                    if (obj == null) {
                    }
                    if (this.ॱͺ > 0) {
                        if (this.ʿ.ˎ().ᐝ != 1) {
                            eaVar.ˊ(ˊ5, ˊ3, ˊᐝ(), 6);
                            if (this.ʿ.ˋ != null) {
                                eaVar.ˊ(ˊ5, eaVar.ˊ(this.ʿ.ˋ), 0, 6);
                                z3 = false;
                            }
                        } else {
                            this.ʿ.ˎ().ˎ(eaVar);
                        }
                    }
                    if (this.ˊˋ == null) {
                    }
                    if (this.ˊˋ == null) {
                    }
                    ˏ(eaVar, z8, this.ˊˋ == null ? eaVar.ˊ(this.ˊˋ.ʻॱ) : null, this.ˊˋ == null ? eaVar.ˊ(this.ˊˋ.ʽॱ) : null, this.ˉ[1], z2, this.ʻॱ, this.ʽॱ, this.ˎˏ, i3, this.ـ, this.ʻᐝ[1], this.ᐝˋ, z, z9, i, this.ˏॱ, this.ͺ, this.ˊॱ, z3);
                    if (obj != null) {
                        if (this.ॱᐝ != 1) {
                            eaVar.ˋ(ˊ2, ˊ, ˊ4, ˊ3, this.ॱˋ, 6);
                        } else {
                            eaVar.ˋ(ˊ4, ˊ3, ˊ2, ˊ, this.ॱˋ, 6);
                        }
                    }
                    if (!this.ˊˊ.ᐝ()) {
                        eaVar.ˏ(this, this.ˊˊ.ʻ().ˊ(), (float) Math.toRadians((double) (this.ʻˊ + 90.0f)), this.ˊˊ.ˏ());
                    }
                }
            } else if (this.ˉ[1] == c.MATCH_CONSTRAINT && i8 == 3) {
                this.ॱᐝ = 1;
                if (this.ˋˋ == -1) {
                    this.ॱˋ = 1.0f / this.ॱˋ;
                }
                int i9 = (int) (this.ॱˋ * ((float) this.ˍ));
                if (this.ˉ[0] != c.MATCH_CONSTRAINT) {
                    i = 4;
                    i2 = i7;
                    obj = null;
                    i3 = i9;
                    i4 = i5;
                } else {
                    i = i8;
                    i2 = i7;
                    r28 = 1;
                    i3 = i9;
                    i4 = i5;
                }
                this.ᐝ[0] = i2;
                this.ᐝ[1] = i;
                z = obj == null && (this.ॱᐝ == 0 || this.ॱᐝ == -1);
                z2 = this.ˉ[0] != c.WRAP_CONTENT && (this instanceof ek);
                z3 = true;
                if (this.ˊˊ.ᐝ()) {
                    z3 = false;
                }
                if (this.ˎ != 2) {
                    ˏ(eaVar, z7, this.ˊˋ == null ? eaVar.ˊ(this.ˊˋ.ᐝॱ) : null, this.ˊˋ == null ? eaVar.ˊ(this.ˊˋ.ʼॱ) : null, this.ˉ[0], z2, this.ᐝॱ, this.ʼॱ, this.ˌ, i4, this.ॱʻ, this.ʻᐝ[0], this.ॱʼ, z, z10, i2, this.ʽ, this.ʼ, this.ʻ, z3);
                }
                if (this.ॱ != 2) {
                    z2 = this.ˉ[1] != c.WRAP_CONTENT && (this instanceof ek);
                    z = obj == null && (this.ॱᐝ == 1 || this.ॱᐝ == -1);
                    if (this.ॱͺ > 0) {
                        if (this.ʿ.ˎ().ᐝ != 1) {
                            this.ʿ.ˎ().ˎ(eaVar);
                        } else {
                            eaVar.ˊ(ˊ5, ˊ3, ˊᐝ(), 6);
                            if (this.ʿ.ˋ != null) {
                                eaVar.ˊ(ˊ5, eaVar.ˊ(this.ʿ.ˋ), 0, 6);
                                z3 = false;
                            }
                        }
                    }
                    ˏ(eaVar, z8, this.ˊˋ == null ? eaVar.ˊ(this.ˊˋ.ʻॱ) : null, this.ˊˋ == null ? eaVar.ˊ(this.ˊˋ.ʽॱ) : null, this.ˉ[1], z2, this.ʻॱ, this.ʽॱ, this.ˎˏ, i3, this.ـ, this.ʻᐝ[1], this.ᐝˋ, z, z9, i, this.ˏॱ, this.ͺ, this.ˊॱ, z3);
                    if (obj != null) {
                        if (this.ॱᐝ != 1) {
                            eaVar.ˋ(ˊ4, ˊ3, ˊ2, ˊ, this.ॱˋ, 6);
                        } else {
                            eaVar.ˋ(ˊ2, ˊ, ˊ4, ˊ3, this.ॱˋ, 6);
                        }
                    }
                    if (!this.ˊˊ.ᐝ()) {
                        eaVar.ˏ(this, this.ˊˊ.ʻ().ˊ(), (float) Math.toRadians((double) (this.ʻˊ + 90.0f)), this.ˊˊ.ˏ());
                    }
                }
            }
        }
        i = i8;
        i2 = i7;
        obj = obj2;
        i3 = i6;
        i4 = i5;
        this.ᐝ[0] = i2;
        this.ᐝ[1] = i;
        if (obj == null) {
        }
        if (this.ˉ[0] != c.WRAP_CONTENT) {
        }
        z3 = true;
        if (this.ˊˊ.ᐝ()) {
            z3 = false;
        }
        if (this.ˎ != 2) {
            if (this.ˊˋ == null) {
            }
            if (this.ˊˋ == null) {
            }
            ˏ(eaVar, z7, this.ˊˋ == null ? eaVar.ˊ(this.ˊˋ.ᐝॱ) : null, this.ˊˋ == null ? eaVar.ˊ(this.ˊˋ.ʼॱ) : null, this.ˉ[0], z2, this.ᐝॱ, this.ʼॱ, this.ˌ, i4, this.ॱʻ, this.ʻᐝ[0], this.ॱʼ, z, z10, i2, this.ʽ, this.ʼ, this.ʻ, z3);
        }
        if (this.ॱ != 2) {
            if (this.ˉ[1] != c.WRAP_CONTENT) {
            }
            if (obj == null) {
            }
            if (this.ॱͺ > 0) {
                if (this.ʿ.ˎ().ᐝ != 1) {
                    eaVar.ˊ(ˊ5, ˊ3, ˊᐝ(), 6);
                    if (this.ʿ.ˋ != null) {
                        eaVar.ˊ(ˊ5, eaVar.ˊ(this.ʿ.ˋ), 0, 6);
                        z3 = false;
                    }
                } else {
                    this.ʿ.ˎ().ˎ(eaVar);
                }
            }
            if (this.ˊˋ == null) {
            }
            if (this.ˊˋ == null) {
            }
            ˏ(eaVar, z8, this.ˊˋ == null ? eaVar.ˊ(this.ˊˋ.ʻॱ) : null, this.ˊˋ == null ? eaVar.ˊ(this.ˊˋ.ʽॱ) : null, this.ˉ[1], z2, this.ʻॱ, this.ʽॱ, this.ˎˏ, i3, this.ـ, this.ʻᐝ[1], this.ᐝˋ, z, z9, i, this.ˏॱ, this.ͺ, this.ˊॱ, z3);
            if (obj != null) {
                if (this.ॱᐝ != 1) {
                    eaVar.ˋ(ˊ2, ˊ, ˊ4, ˊ3, this.ॱˋ, 6);
                } else {
                    eaVar.ˋ(ˊ4, ˊ3, ˊ2, ˊ, this.ॱˋ, 6);
                }
            }
            if (!this.ˊˊ.ᐝ()) {
                eaVar.ˏ(this, this.ˊˊ.ʻ().ˊ(), (float) Math.toRadians((double) (this.ʻˊ + 90.0f)), this.ˊˊ.ˏ());
            }
        }
    }

    public void ˏ(boolean z, boolean z2, boolean z3, boolean z4) {
        if (this.ॱᐝ == -1) {
            if (z3 && !z4) {
                this.ॱᐝ = 0;
            } else if (!z3 && z4) {
                this.ॱᐝ = 1;
                if (this.ˋˋ == -1) {
                    this.ॱˋ = 1.0f / this.ॱˋ;
                }
            }
        }
        if (this.ॱᐝ == 0 && (!this.ʻॱ.ᐝ() || !this.ʽॱ.ᐝ())) {
            this.ॱᐝ = 1;
        } else if (this.ॱᐝ == 1 && !(this.ᐝॱ.ᐝ() && this.ʼॱ.ᐝ())) {
            this.ॱᐝ = 0;
        }
        if (this.ॱᐝ == -1 && !(this.ʻॱ.ᐝ() && this.ʽॱ.ᐝ() && this.ᐝॱ.ᐝ() && this.ʼॱ.ᐝ())) {
            if (this.ʻॱ.ᐝ() && this.ʽॱ.ᐝ()) {
                this.ॱᐝ = 0;
            } else if (this.ᐝॱ.ᐝ() && this.ʼॱ.ᐝ()) {
                this.ॱˋ = 1.0f / this.ॱˋ;
                this.ॱᐝ = 1;
            }
        }
        if (this.ॱᐝ == -1) {
            if (z && !z2) {
                this.ॱᐝ = 0;
            } else if (!z && z2) {
                this.ॱˋ = 1.0f / this.ॱˋ;
                this.ॱᐝ = 1;
            }
        }
        if (this.ॱᐝ == -1) {
            if (this.ʽ > 0 && this.ˏॱ == 0) {
                this.ॱᐝ = 0;
            } else if (this.ʽ == 0 && this.ˏॱ > 0) {
                this.ॱˋ = 1.0f / this.ॱˋ;
                this.ॱᐝ = 1;
            }
        }
        if (this.ॱᐝ == -1 && z && z2) {
            this.ॱˋ = 1.0f / this.ॱˋ;
            this.ॱᐝ = 1;
        }
    }

    private void ˏ(ea eaVar, boolean z, eh ehVar, eh ehVar2, c cVar, boolean z2, eo eoVar, eo eoVar2, int i, int i2, int i3, int i4, float f, boolean z3, boolean z4, int i5, int i6, int i7, float f2, boolean z5) {
        eh ˊ = eaVar.ˊ((Object) eoVar);
        eh ˊ2 = eaVar.ˊ((Object) eoVar2);
        eh ˊ3 = eaVar.ˊ(eoVar.ʻ());
        eh ˊ4 = eaVar.ˊ(eoVar2.ʻ());
        if (eaVar.ˊ && eoVar.ˎ().ᐝ == 1 && eoVar2.ˎ().ᐝ == 1) {
            if (ea.ˏ() != null) {
                ei ˏ = ea.ˏ();
                ˏ.ॱˎ++;
            }
            eoVar.ˎ().ˎ(eaVar);
            eoVar2.ˎ().ˎ(eaVar);
            if (!z4 && z) {
                eaVar.ˋ(ehVar2, ˊ2, 0, 6);
                return;
            }
            return;
        }
        int i8;
        int max;
        Object obj;
        if (ea.ˏ() != null) {
            ˏ = ea.ˏ();
            ˏ.ˊˋ++;
        }
        boolean ᐝ = eoVar.ᐝ();
        boolean ᐝ2 = eoVar2.ᐝ();
        boolean ᐝ3 = this.ˊˊ.ᐝ();
        Object obj2 = null;
        int i9 = 0;
        if (ᐝ) {
            i9 = 1;
        }
        if (ᐝ2) {
            i9++;
        }
        if (ᐝ3) {
            i8 = i9 + 1;
        } else {
            i8 = i9;
        }
        if (z3) {
            i5 = 3;
        }
        switch (cVar) {
            case FIXED:
                obj2 = null;
                break;
            case WRAP_CONTENT:
                obj2 = null;
                break;
            case MATCH_PARENT:
                obj2 = null;
                break;
            case MATCH_CONSTRAINT:
                obj2 = 1;
                if (i5 == 4) {
                    obj2 = null;
                    break;
                }
                break;
        }
        if (this.ˈॱ == 8) {
            i9 = 0;
            obj2 = null;
        } else {
            i9 = i2;
        }
        if (z5) {
            if (!ᐝ && !ᐝ2 && !ᐝ3) {
                eaVar.ˋ(ˊ, i);
            } else if (ᐝ && !ᐝ2) {
                eaVar.ˊ(ˊ, ˊ3, eoVar.ˏ(), 6);
            }
        }
        if (obj2 != null) {
            int min;
            if (i6 == -2) {
                i6 = i9;
            }
            if (i7 == -2) {
                i7 = i9;
            }
            if (i6 > 0) {
                eaVar.ˋ(ˊ2, ˊ, i6, 6);
                i9 = Math.max(i9, i6);
            }
            if (i7 > 0) {
                eaVar.ॱ(ˊ2, ˊ, i7, 6);
                min = Math.min(i9, i7);
            } else {
                min = i9;
            }
            if (i5 == 1) {
                if (z) {
                    eaVar.ˊ(ˊ2, ˊ, min, 6);
                } else if (z4) {
                    eaVar.ˊ(ˊ2, ˊ, min, 4);
                } else {
                    eaVar.ˊ(ˊ2, ˊ, min, 1);
                }
            } else if (i5 == 2) {
                eh ˊ5;
                eh ˊ6;
                if (eoVar.ॱ() == a.TOP || eoVar.ॱ() == a.BOTTOM) {
                    ˊ5 = eaVar.ˊ(this.ˊˋ.ˎ(a.TOP));
                    ˊ6 = eaVar.ˊ(this.ˊˋ.ˎ(a.BOTTOM));
                } else {
                    ˊ5 = eaVar.ˊ(this.ˊˋ.ˎ(a.LEFT));
                    ˊ6 = eaVar.ˊ(this.ˊˋ.ˎ(a.RIGHT));
                }
                eaVar.ˏ(eaVar.ˊ().ˎ(ˊ2, ˊ, ˊ6, ˊ5, f2));
                obj2 = null;
            }
            if (!(obj2 == null || i8 == 2 || z3)) {
                max = Math.max(i6, min);
                if (i7 > 0) {
                    max = Math.min(i7, max);
                }
                eaVar.ˊ(ˊ2, ˊ, max, 6);
                obj = null;
            }
            obj = obj2;
        } else if (z2) {
            eaVar.ˊ(ˊ2, ˊ, 0, 3);
            if (i3 > 0) {
                eaVar.ˋ(ˊ2, ˊ, i3, 6);
            }
            if (i4 < Integer.MAX_VALUE) {
                eaVar.ॱ(ˊ2, ˊ, i4, 6);
                obj = obj2;
            }
            obj = obj2;
        } else {
            eaVar.ˊ(ˊ2, ˊ, i9, 6);
            obj = obj2;
        }
        if (z5 && !z4) {
            if (ᐝ || ᐝ2 || ᐝ3) {
                if (!ᐝ || ᐝ2) {
                    if (!ᐝ && ᐝ2) {
                        eaVar.ˊ(ˊ2, ˊ4, -eoVar2.ˏ(), 6);
                        if (z) {
                            eaVar.ˋ(ˊ, ehVar, 0, 5);
                        }
                    } else if (ᐝ && ᐝ2) {
                        Object obj3;
                        boolean z6;
                        boolean z7;
                        Object obj4 = null;
                        int i10 = 5;
                        if (obj != null) {
                            if (z && i3 == 0) {
                                eaVar.ˋ(ˊ2, ˊ, 0, 6);
                            }
                            if (i5 == 0) {
                                max = 6;
                                if (i7 > 0 || r36 > 0) {
                                    max = 4;
                                    obj4 = 1;
                                }
                                eaVar.ˊ(ˊ, ˊ3, eoVar.ˏ(), max);
                                eaVar.ˊ(ˊ2, ˊ4, -eoVar2.ˏ(), max);
                                if (i7 > 0 || r36 > 0) {
                                    obj2 = 1;
                                } else {
                                    obj2 = null;
                                }
                                obj3 = obj4;
                            } else if (i5 == 1) {
                                obj2 = 1;
                                i10 = 6;
                                r16 = 1;
                            } else if (i5 == 3) {
                                max = 4;
                                if (!(z3 || this.ॱᐝ == -1 || i7 > 0)) {
                                    max = 6;
                                }
                                eaVar.ˊ(ˊ, ˊ3, eoVar.ˏ(), max);
                                eaVar.ˊ(ˊ2, ˊ4, -eoVar2.ˏ(), max);
                                max = 1;
                                r16 = 1;
                            } else {
                                obj2 = null;
                                obj3 = null;
                            }
                        } else {
                            obj2 = 1;
                            obj3 = null;
                        }
                        if (obj2 != null) {
                            eaVar.ˎ(ˊ, ˊ3, eoVar.ˏ(), f, ˊ4, ˊ2, eoVar2.ˏ(), i10);
                            boolean z8 = eoVar.ˋ.ˎ instanceof ej;
                            boolean z9 = eoVar2.ˋ.ˎ instanceof ej;
                            if (z8 && !z9) {
                                z6 = true;
                                z7 = z;
                                max = 6;
                                i9 = 5;
                                if (obj3 != null) {
                                    i9 = 6;
                                    max = 6;
                                }
                                eaVar.ˋ(ˊ, ˊ3, eoVar.ˏ(), i9);
                                eaVar.ॱ(ˊ2, ˊ4, -eoVar2.ˏ(), max);
                                if (z) {
                                    eaVar.ˋ(ˊ, ehVar, 0, 6);
                                }
                            } else if (!z8 && z9) {
                                i9 = 6;
                                z6 = z;
                                z7 = true;
                                max = 5;
                                if (obj3 != null) {
                                    i9 = 6;
                                    max = 6;
                                }
                                if ((obj == null && r7) || obj3 != null) {
                                    eaVar.ˋ(ˊ, ˊ3, eoVar.ˏ(), i9);
                                }
                                if ((obj == null && r6) || obj3 != null) {
                                    eaVar.ॱ(ˊ2, ˊ4, -eoVar2.ˏ(), max);
                                }
                                if (z) {
                                    eaVar.ˋ(ˊ, ehVar, 0, 6);
                                }
                            }
                        }
                        z6 = z;
                        z7 = z;
                        max = 5;
                        i9 = 5;
                        if (obj3 != null) {
                            i9 = 6;
                            max = 6;
                        }
                        eaVar.ˋ(ˊ, ˊ3, eoVar.ˏ(), i9);
                        eaVar.ॱ(ˊ2, ˊ4, -eoVar2.ˏ(), max);
                        if (z) {
                            eaVar.ˋ(ˊ, ehVar, 0, 6);
                        }
                    }
                } else if (z) {
                    eaVar.ˋ(ehVar2, ˊ2, 0, 5);
                }
            } else if (z) {
                eaVar.ˋ(ehVar2, ˊ2, 0, 5);
            }
            if (z) {
                eaVar.ˋ(ehVar2, ˊ2, 0, 6);
            }
        } else if (i8 < 2 && z) {
            eaVar.ˋ(ˊ, ehVar, 0, 6);
            eaVar.ˋ(ehVar2, ˊ2, 0, 6);
        }
    }

    public void ˋ(ea eaVar) {
        int i = 0;
        int ॱ = eaVar.ॱ(this.ᐝॱ);
        int ॱ2 = eaVar.ॱ(this.ʻॱ);
        int ॱ3 = eaVar.ॱ(this.ʼॱ);
        int ॱ4 = eaVar.ॱ(this.ʽॱ);
        int i2 = ॱ4 - ॱ2;
        if (ॱ3 - ॱ < 0 || i2 < 0 || ॱ == Integer.MIN_VALUE || ॱ == ActivityChooserViewAdapter.MAX_ACTIVITY_COUNT_UNLIMITED || ॱ2 == Integer.MIN_VALUE || ॱ2 == ActivityChooserViewAdapter.MAX_ACTIVITY_COUNT_UNLIMITED || ॱ3 == Integer.MIN_VALUE || ॱ3 == ActivityChooserViewAdapter.MAX_ACTIVITY_COUNT_UNLIMITED || ॱ4 == Integer.MIN_VALUE || ॱ4 == ActivityChooserViewAdapter.MAX_ACTIVITY_COUNT_UNLIMITED) {
            ॱ4 = 0;
            ॱ3 = 0;
            ॱ2 = 0;
        } else {
            i = ॱ3;
            ॱ3 = ॱ2;
            ॱ2 = ॱ;
        }
        ॱ(ॱ2, ॱ3, i, ॱ4);
    }
}
